package com.shzg.im.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shzg.im.dao.IGroupDao;
import com.shzg.im.model.Group;
import com.shzg.im.model.User;

@Service
public class GroupService {

    @Autowired
    private IGroupDao groupDao;

    public List<User> getGroupMemberListByGroupId(String groupId) {
        return groupDao.getGroupMemberListByGroupId(groupId);
    }

    public List<Group> getGroupListByMemberId(String memberId) {
        return groupDao.getGroupListByMemberId(memberId);
    }
}
